import { utils } from 'hi-ui';
export default {
    id: "QueryEntity_stock",
    returnTotal: true,
    modelFile: "store/query/dataset/QueryEntity_stock.xml",
    sortFields: [
        "FID",
        "FBARCODE",
        "FGOODSNUMBER",
        "FDESC",
        "FSPEC",
        "FUNIT",
        "FCLASS",
        "FPROADDRESS",
        "FBRAND",
        "FPRICE",
        "FABC",
        "FDOSAGEFORM",
        "FAMOUNT",
        "FLOCKAMOUNT",
        "FUSEAMOUNT",
        "FAPPROVALNUMBER",
        "FAPPROVALDATE",
        "FMEDICARETYPE",
        "FCREATEDATE",
        "FDRUGCLASS	",
        "FSTORAGE	",
        "FENTERPRISEDESC",
        "FENTERPRISEID",
        "FSHOPDESC",
        "FSHOPDESCID",
        "FSTORELOWER",
        "FSTOREUPPER",
        "FVIPPRICE",
        "FSHELVESDESC",
        "FSHELVESID"

    ],
    fields: {
        FID: {
            name: "FID", //字段ID
            label: "ID", //字段描述
            dbtype: "dbString", //数据类型
            default: {
                //默认值
                //rule: 'first', //prior   填充规则
                exps: (data) => {
                    //填充表达式
                    return utils.string.guid();
                },
            },
        },
        FBARCODE: {
            name: "FBARCODE", //字段ID
            label: "条形码", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FGOODSNUMBER: {
            name: "FGOODSNUMBER", //字段ID
            label: "店内编码", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FBRAND: {
            name: "FBRAND", //字段ID
            label: "品牌", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FDESC: {
            name: "FDESC", //字段ID
            label: "通用名称", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FAMOUNT: {
            name: "FAMOUNT", //字段ID
            label: "数量", //字段描述
            dbtype: "dbFloat", //数据类型

        },
        FLOCKAMOUNT: {
            name: "FLOCKAMOUNT", //字段ID
            label: "锁定库存", //字段描述
            dbtype: "dbFloat", //数据类型

        },
        FUSEAMOUNT: {
            name: "FUSEAMOUNT", //字段ID
            label: "可用库存", //字段描述
            dbtype: "dbFloat", //数据类型

        },
        FUNIT: {
            name: "FUNIT", //字段ID
            label: "单位", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },

        FENTERPRISEDESC: {
            name: "FENTERPRISEDESC", //字段ID
            label: "企业名称", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FENTERPRISEID: {
            name: "FENTERPRISEID", //字段ID
            label: "企业ID", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },

        FPRICE: {
            name: "FPRICE", //字段ID
            label: "单价", //字段描述
            dbtype: "dbFloat", //数据类型
        },

        FCLASS: {
            name: "FCLASS", //字段ID
            label: "类别", //字段描述
            dbtype: "dbString", //数据类型
        },

        FSPEC: {
            name: "FSPEC", //字段ID
            label: "规格", //字段描述
            dbtype: "dbString", //数据类型
        },
        FPROADDRESS: {
            name: "FPROADDRESS", //字段ID
            label: "生产地址", //字段描述
            dbtype: "dbString", //数据类型
        },
        FPROCOMPANY: {
            name: "FPROCOMPANY", //字段ID
            label: "生产厂家", //字段描述
            dbtype: "dbString", //数据类型
            length: 200,
        },
        FDOSAGEFORM: {
            name: "FDOSAGEFORM", //字段ID
            label: "剂型", //字段描述
            dbtype: "dbString", //数据类型
        },

        FAPPROVALDATE: {
            name: "FAPPROVALDATE", //字段ID
            label: "批准日期", //字段描述
            dbtype: "dbDate", //数据类型
        },
        FAPPROVALNUMBER: {
            name: "FAPPROVALNUMBER", //字段ID
            label: "批准文号", //字段描述
            dbtype: "dbString", //数据类型
        },
        FMEDICARETYPE: {
            name: "FMEDICARETYPE", //字段ID
            label: "医保类别", //字段描述
            dbtype: "dbString", //数据类型
        },
        FDRUGCLASS: {
            name: "FDRUGCLASS", //字段ID
            label: "药品分类", //字段描述
            dbtype: "dbString", //数据类型
        },
        FSTORAGE: {
            name: "FSTORAGE", //字段ID
            label: "仓库", //字段描述
            dbtype: "dbString", //数据类型
        },
        FABC: {
            name: "FABC", //字段ID
            label: "ABC级", //字段描述
            dbtype: "dbString", //数据类型
        },
        FUSERID: {
            name: "FUSERID", //字段ID
            label: "用户", //字段描述
            dbtype: "dbString", //数据类型
        },
        FCREATEDATE: {
            name: "FCREATEDATE", //字段ID
            label: "创建日期", //字段描述
            dbtype: "dbDate", //数据类型

        },
        FSHOPDESC: {
            name: "FSHOPDESC", //字段ID
            label: "店铺", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FSHOPDESCID: {
            name: "FSHOPDESCID", //字段ID
            label: "店铺编号", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FVIPPRICE: {
            name: "FVIPPRICE", //字段ID
            label: "会员价", //字段描述
            dbtype: "dbFloat", //数据类型

        },
        FSTOREUPPER: {
            name: "FSTOREUPPER", //字段ID
            label: "库存上限", //字段描述
            dbtype: "dbInt", //数据类型
        },

        FSTORELOWER: {
            name: "FSTORELOWER", //字段ID
            label: "库存下限", //字段描述
            dbtype: "dbInt", //数据类型
        },
        FSHELVESDESC: {
            name: "FSHELVESDESC", //字段ID
            label: "货架名称", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FSHELVESID: {
            name: "FSHELVESID", //字段ID
            label: "货架编号", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
    }
}
